<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.util.*,java.net.*" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>易考师-登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="E=edge;chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<!-- JQuery script -->
<!--[if !IE]><!-->
<script type="text/javascript" src="${ctx }/styles/common/jquery/jquery-2.1.4.min.js"></script>
<!--<![endif]-->
<!--[if IE]>
	<script type="text/javascript" src="${ctx }/styles/common/jquery/jquery-1.11.3.min.js"></script>
<![endif]-->

<script type="text/javascript" src="${ctx }/resources/js/layer-v2.1/layer.js"></script>
<script type="text/javascript" src="${ctx }/styles/js/index/login.js"></script>

<link rel="stylesheet" href="${ctx }/styles/BJUI/themes/css/bootstrap.min.css" />
<link rel="stylesheet" href="${ctx }/resources/fonts/webside/font-webside.min.css" />
<link rel="stylesheet" href="${ctx }/resources/css/customer/webside-login.min.css" />


<script type="text/javascript">
	var sys = sys || {};
    sys.rootPath = "${ctx}";
    $(document).ready(function() {
	    //错误提示信息
	    if ("${error}" != "") {
		    layer.alert('${error}' , {icon: 5 , shift: 6 , time: 0
		    });
	    }
    });
</script>
</head>
<body>
    <div class="main-container">
        <div class="main-content">
            <div class="row">
                <div class="col-sm-10 col-sm-offset-1">
                    <div class="login-container">
                        <div class="center">
                            <h1>
                                <i class=""></i>
                                <span class="white">易考师 </span>
                            </h1>
                        </div>

                        <div class="space-6"></div>

                        <div class="position-relative">
                            <div id="login-box" class="login-box visible widget-box no-border">
                                <div class="widget-body">
                                    <div class="widget-main">
                                        <h4 class="header blue lighter bigger">
                                            <i class="ace-icon icon-coffee blue"></i>
                                            请输入帐号信息
                                        </h4>

                                        <div class="space-6"></div>

                                        <form id="loginform" name="loginform" action="${ctx }/admin/login" method="post">
                                            <fieldset>
                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right"> <input name="accountName" id="accountName"
                                                        type="email" class="form-control" placeholder="用户名" /> <i class="ace-icon icon-user"></i>
                                                    </span>
                                                </label>
                                                <label class="block clearfix">
                                                    <span class="block input-icon input-icon-right"> <input name="password" id="password"
                                                        type="password" class="form-control" placeholder="密码" /> <i class="ace-icon icon-lock"></i>
                                                    </span>
                                                </label>
                                                <label class="block clearfix">
                                                    <input id="captcha" name="captcha" type="text" class="form-control" placeholder="验证码"
                                                        style="width:60%;float:left;" /> <img id="kaptchaImage" src="${ctx }/admin/captcha"
                                                        onclick="this.src='${ctx }/admin/captcha?d='+Math.random();"
                                                        style="cursor:pointer; margin-left:10px;" title="点击更换" />
                                                </label>
                                                <div class="space"></div>

                                                <div class="clearfix">
                                                    <label class="inline">
                                                        <!-- <input name='remember' type="checkbox"/> <span class="lbl"> 记住我</span> -->
                                                    </label>

                                                    <button onclick="login();" type="button" class="width-35 pull-right btn btn-sm btn-primary">
                                                        <i class="ace-icon icon-key"></i> <span class="bigger-110">登录</span>
                                                    </button>
                                                </div>

                                                <div class="space-4"></div>
                                            </fieldset>
                                        </form>

                                        <div class="social-or-login center">
                                            <span class="bigger-110"></span>
                                        </div>

                                        <div class="space-6"></div>

                                        <div class="social-login center"></div>
                                    </div>
                                    <!-- /.widget-main -->

                                </div>
                                <!-- /.widget-body -->
                            </div>
                            <!-- /.login-box -->


                        </div>
                        <!-- /.position-relative -->
                    </div>
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /.main-content -->
    </div>
    <!-- /.main-container -->

</body>
</html>
